package org.fanrui;

import org.fanrui.hrm.exception.GlobalException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * 系统启动类
 *
 * @author fanrui
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = {"org.fanrui.hrm.feign.clients"})
@Import({GlobalException.class}) // 导入全局异常处理类,以逗号分割可以导入多个
public class SystemApplicationServer {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplicationServer.class, args);
    }
}